import singleton from "../libs/singleton";
import runSetp1 from "./runSetp1";

class Model {
	#setp1_timeout;
	#run_setp1;
	
	constructor() {
		this.#run_setp1 = new runSetp1();
	}

	run() {
		console.log("start")
		this.setp1()
	}

	setp1() {
		//运行
		this.#run_setp1.runder()
		//完成
		this.#run_setp1.done = () => {
			console.log('执行第二步')
		}
		//终止
		this.#run_setp1.err = (e) => {
			console.log("执行终止", e)
			this.#run_setp1.init();
			uni.$rui.route('pages/device/issue/issue')
		}
	}
	

}

export default singleton(Model);